package cn.edu.buaa.nlsde.mpj.fw.model;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: Victor
 * Date: 13-6-10
 * Time: 下午7:24
 * To change this template use File | Settings | File Templates.
 */
public abstract class Variables {
    private Map<String, Variable> collection;

    public Variables() {
        collection = new HashMap<String, Variable>();
    }

    public void put(String name, Variable variable) {
        collection.put(name, variable);
    }

    public void remove(String name) {
        collection.remove(name);
    }

    public int size() {
        return collection.size();
    }

    public Variable get(String name) {
        return collection.get(name);
    }

    public Map<String, Variable> collection() {
        return collection;
    }
}
